package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.CommunityMemberMapper;
import com.ruoyi.system.domain.CommunityMember;
import com.ruoyi.system.service.ICommunityMemberService;

/**
 * 社区成员Service业务层处理
 * 
 * @author zrj
 * @date 2025-07-16
 */
@Service
public class CommunityMemberServiceImpl implements ICommunityMemberService 
{
    @Autowired
    private CommunityMemberMapper communityMemberMapper;

    /**
     * 查询社区成员
     * 
     * @param id 社区成员主键
     * @return 社区成员
     */
    @Override
    public CommunityMember selectCommunityMemberById(Long id)
    {
        return communityMemberMapper.selectCommunityMemberById(id);
    }

    /**
     * 查询社区成员列表
     * 
     * @param communityMember 社区成员
     * @return 社区成员
     */
    @Override
    public List<CommunityMember> selectCommunityMemberList(CommunityMember communityMember)
    {
        return communityMemberMapper.selectCommunityMemberList(communityMember);
    }

    /**
     * 新增社区成员
     * 
     * @param communityMember 社区成员
     * @return 结果
     */
    @Override
    public int insertCommunityMember(CommunityMember communityMember)
    {
        return communityMemberMapper.insertCommunityMember(communityMember);
    }

    /**
     * 修改社区成员
     * 
     * @param communityMember 社区成员
     * @return 结果
     */
    @Override
    public int updateCommunityMember(CommunityMember communityMember)
    {
        return communityMemberMapper.updateCommunityMember(communityMember);
    }

    /**
     * 批量删除社区成员
     * 
     * @param ids 需要删除的社区成员主键
     * @return 结果
     */
    @Override
    public int deleteCommunityMemberByIds(Long[] ids)
    {
        return communityMemberMapper.deleteCommunityMemberByIds(ids);
    }

    /**
     * 删除社区成员信息
     * 
     * @param id 社区成员主键
     * @return 结果
     */
    @Override
    public int deleteCommunityMemberById(Long id)
    {
        return communityMemberMapper.deleteCommunityMemberById(id);
    }
}
